package com.yootk;
import java.io.*;
public class YootkDemoOutputStream {
    public static void main(String[] args) throws Exception {
        File file = new File("H:" + File.separator + "yootk.txt");
        if (!file.getParentFile().exists()) file.getParentFile().mkdirs();
        try (OutputStream output = new FileOutputStream(file)) {
            byte data[] = "www.yootk.com".getBytes();
            output.write(data);
        }
    }
}